package com.like.lazyfragment.ui2

import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import com.like.lazyfragment.R

class Fragment2: LazyFragment() {
    override fun getLayout(): Int = R.layout.activity_main3
    override fun getString(): String = "2222222222222222"
    override fun setUserVisibleHint(isVisibleToUser: Boolean) {
        super.setUserVisibleHint(isVisibleToUser)
        Log.e("---------->","setUserVisibleHint_22222222222222:"+isVisibleToUser)
    }
    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)
        Log.e("---------->","onActivityCreated_22222222222222222")
    }
    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        Log.e("---------->","onCreateView_2222222222222222")
        return super.onCreateView(inflater, container, savedInstanceState)
    }

    override fun onPause() {
        super.onPause()
        Log.e("---------->","onPause_2222222222222222")
    }

    override fun onDestroyView() {
        super.onDestroyView()
        Log.e("---------->","onDestroyView_2222222222222222")
    }
    override fun onDestroy() {
        Log.e("---------->","onDestroy_2222222222222222")
        super.onDestroy()
    }
}